<?php
include_once 'classes/Campaign.php';
include_once 'classes/Product.php';
class V_Product{
	var $Product;
	function V_Product($product){
		$this->Product = $product;
		$this->DisplayForm();
	}
	function DisplayForm(){
		//$this->Product = new Product();
		$name = $this->Product->name;
		$price = $this->Product->price;
		$image = $this->Product->image;
		$stock = $this->Product->stock;
		$short_description = $this->Product->short_description;
		$properties = $this->Product->properties;
?>
  <div id="product_539277" class="product-list-item">
    <div class="product_bg"><img src="./images/product-bg.png" style="_padding-top:600px;"></div>
    <div class="wrap_product">
      <div class="hover_me">
        <a href="./product.php?ID=<?php echo $this->Product->product_id;?>"><img src="./media/product/<?php echo $this->Product->image;?>" width="276" height="385" alt="CERRUTI 1881"><div class="urun_detay">ÜRÜN DETAYLARI</div></a>
      </div>
      <div class="product_info">
        <div class="product_info_container" style="height:75px;overflow:hidden;">
          <div class="product_h"><a href="/producdetail.php?ID=<?php echo $this->Product->product_id;?>"><?php echo $this->Product->name;?></a></div>
          <p><?php  echo $this->Product->getCategoryName();?></p>
        </div>
        <div class="product-price">
          <span class="actual-product-price"><?php $prc =  $this->Product->price; $prc = $prc * 120 / 100; echo $prc;?> TL</span>
          <div style="margin-top:1px"><?php  echo $this->Product->price; ?> TL</div>
        </div>
      </div>
    </div>
    
  </div>
  
 			 <?php
		}

	}
?>